You can insert special characters (like " ' ; &) with the backslash:
document.write ("You \& I sing \"Happy Birthday\".") |
The example above will produce this output:
You & I sing "Happy Birthday". |
#Title: JavaScript Guidelines
#Element: 296: Insert Special Characters You can insert special ...
#Article: 173: JavaScript Guidelines